import { http } from '@/utils/http'

//推荐嘉宾用户信息
export type UserItem = {
  //嘉宾id
  id: string
  //嘉宾名称
  nickname: string
  //嘉宾头像
  avatar: string
  //嘉宾性别
  gender: string
  //嘉宾地址
  household_region: string
  //嘉宾年龄
  age: number
  //嘉宾状态（未婚
  marital_status: string
  //嘉宾身高
  height: number
  //嘉宾职业
  occupation: string
  //嘉宾学历
  education: string
  //嘉宾月收入
  monthly_income: number
  //嘉宾爱好
  hobbies: string
  //嘉宾自我介绍
  self_introduction: string
  //嘉宾寻觅对象类型
  ask: UserFindTypeItem
}
//推荐嘉宾寻觅对象的要求
export type UserFindTypeItem = {
  //寻觅对象年龄范围
  age_range: string
  //寻觅对象身高范围
  height_range: string
  //寻觅对象状态
  desired_marital_status: string
  //寻觅对象的最低学历
  minimum_education: string
  //寻觅对象的最低收入
  minimum_income: number
  //寻觅对象结婚时间
  marriage_timing: string
  //寻觅对象工作地区
  desired_work_region: string
  //寻觅对象对房子要求
  desired_house_status: string
  //寻觅对象其他要求
  other_requirements: string
}
export type userItem = {
  result: UserItem[]
}

//接口
//推荐
export const getlisttui = (data?: any) => {
  console.log('请求接口推荐')
  return http<UserItem[]>({
    url: '/post/api/v1/develop/seek/recommend',
    method: 'POST',
    data: {
      my_id: '70baa98b660d44da9d2aa356214d9d58',
      ...data,
    },
  })
}

//同城
export const getlisttong = (data?: any) => {
  console.log('请求接口同城')
  return http<UserItem[]>({
    url: '/post/api/v1/develop/seek/nearby',
    method: 'POST',
    data: {
      my_id: '70baa98b660d44da9d2aa356214d9d58',
      ...data,
    },
  })
}

//匹配我
export const getlistpi = (data?: any) => {
  console.log('请求接口匹配我')
  return http<UserItem[]>({
    url: '/post/api/v1/develop/seek/matching',
    method: 'POST',
    data: {
      my_id: '70baa98b660d44da9d2aa356214d9d58',
      ...data,
    },
  })
}
